public class bs_GetMax {

    public static int process(int[] arr ,int L ,int R){
        if(L==R){
            return arr[L];
        }
        int mid = L+((R-L)>>1);
        int left= process(arr,L,mid);
        int right =process(arr,mid+1,R);
        return Math.max(left,right);
    }

    public static void main(String[] args) {

        int L = 19;
        int R = 9;
        int mid = ((R-L)>>1);
        System.out.println("mid = " + mid);
    }
}
